package com.nimitz.modules.approval.service;


import com.nimitz.modules.approval.domain.ApprovalProcedureProcess;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName IApprovalProcedureProcessService
 * @Author FuCun
 * @Date 2021-08-17-14:45
 * @PackageName com.nimitz.modules.approval.service
 * @Description 审批流线程-接口
 * @Version 1.0.0
 */
public interface IApprovalProcedureProcessService {

    /**
     * 查询所有审批流线程（含搜索）
     *
     * @param  approvalProcedureProcess 审批流线程
     * @return 审批意见集合
     */
    List<ApprovalProcedureProcess> selectApprovalProcedureProcessList(ApprovalProcedureProcess approvalProcedureProcess);

    /**
     * 新增审批流线程
     *
     * @param approvalProcedureProcess 审批流线程
     * @return 结果
     */
    int insertApprovalProcedureProcess(ApprovalProcedureProcess approvalProcedureProcess);

    /**
     * 修改审批流线程
     *
     * @param approvalProcedureProcess 审批流线程
     * @return 结果
     */
    int updateApprovalProcedureProcess(ApprovalProcedureProcess approvalProcedureProcess);

    /**
     * 删除审批流线程
     *
     * @param procedureProcessId 审批流节点id
     * @return 结果
     */
    int deleteApprovalProcedureProcessByProcedureProcessId(Long procedureProcessId);

    /**
     * 校验审批流编号是否唯一
     *
     * @param procedureNo 审批流编号
     * @return 结果
     */
    ApprovalProcedureProcess checkApprovalProcedureNoUnique(@Param("procedureNo")Long procedureNo);

}
